<%--
  Created by IntelliJ IDEA.
  User: hp
  Date: 2020/11/13
  Time: 14:28
  To change this template use File | Settings | File Templates.
--%>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<html>
<head>
    <title>Title</title>
</head>
<body>
<%
    pageContext.setAttribute("key", "pageContext");
    request.setAttribute("key", "request");
    session.setAttribute("key", "session");
    application.setAttribute("key", "application");
    pageContext.setAttribute("req", request);
%>
<%=request.getScheme()%><br/>
${req.getScheme()}
pageContext.request.getsercerName=${pageContext.request.serverName}

<br>
${req.serverName}
${pageContext.session.id}
远程客户端地址
${req.remoteHost}<br>
<%--${req.}--%>
<%--${}--%>
获取工程路径:${req.contextPath}<br>
服务器端口/;${req.serverPort}
<br>请求参数值:${param.key}
<br>请求参数值s:${paramValues.key[0]}
<br>请求参数值s:${paramValues.key[1]}
<br/>头信息cookie:${header["Cookie"]}

<br/><br/><br/><br/>
applicationScope=${applicationScope.key}<br/>
sessionScope=${sessionScope.key}<br/>
requestScope=${requestScope.key}<br/>
pageScope=${pageScope.key}<br/><br/><br/><br/>


</body>
</html>
</%--
Created by IntelliJ IDEA.
User: hp
Date: 2020/11/13
Time: 14:28
To change this template use File | Settings | File Templates.
--%>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<html>
<head>
    <title>Title</title>
</head>
<body>
    <%
pageContext.setAttribute("key","pageContext");
request.setAttribute("key","request");
session.setAttribute("key","session");
application.setAttribute("key","application");
pageContext.setAttribute("req",request);
%>
    <%=request.getScheme()%><br/>
${req.getScheme()}
pageContext.request.getsercerName=${pageContext.request.serverName}

<br>
${req.serverName}
<%--${}--%>>